<!DOCTYPE html>
<html
  lang="zh"
  xmlns:th="http://www.thymeleaf.org"
  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
>
  <head>
    <th:block th:include="include :: header('查看政治生日')" />
  </head>
  <body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
      <div class="row">
        <div class="col-sm-12">
          <div class="ibox float-e-margins">
            <div class="ibox-title">
              <h5>查看政治生日</h5>
            </div>
            <div class="ibox-content">
              <form
                class="form-horizontal m"
                id="form-political-birthday-view"
                th:object="${djPoliticalBirthday}"
              >
                <input name="id" th:field="*{id}" type="hidden" />
                <div class="form-group">
                  <label class="col-sm-3 control-label">党员ID：</label>
                  <div class="col-sm-8">
                    <p
                      class="form-control-static"
                      th:text="*{partyMemberId}"
                    ></p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">参与党员：</label>
                  <div class="col-sm-8">
                    <p class="form-control-static">
                      <span
                        th:if="*{participantNames != null and participantNames != ''}"
                        th:text="*{participantNames}"
                      ></span>
                      <span
                        th:if="*{(participantNames == null or participantNames == '') and memberName != null and memberName != ''}"
                        th:text="*{memberName}"
                      ></span>
                      <span
                        th:if="*{(participantNames == null or participantNames == '') and (memberName == null or memberName == '')}"
                        >未设置</span
                      >
                    </p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">政治生日日期：</label>
                  <div class="col-sm-8">
                    <p
                      class="form-control-static"
                      th:text="*{#dates.format(birthdayDate, 'yyyy-MM-dd')}"
                    ></p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">生日祝福内容：</label>
                  <div class="col-sm-8">
                    <p
                      class="form-control-static"
                      th:utext="*{wishContent}"
                    ></p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">入党申请书：</label>
                  <div class="col-sm-8">
                    <p
                      class="form-control-static"
                      th:if="*{applicationPath != null and applicationPath != ''}"
                    >
                      <a th:href="@{*{applicationPath}}" target="_blank"
                        >查看入党申请书</a
                      >
                    </p>
                    <p
                      class="form-control-static"
                      th:if="*{applicationPath == null or applicationPath == ''}"
                    >
                      无
                    </p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">通知方式：</label>
                  <div class="col-sm-8">
                    <p
                      class="form-control-static"
                      th:text="*{noticeMethods}"
                    ></p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">活动资料：</label>
                  <div class="col-sm-8">
                    <p
                      class="form-control-static"
                      th:if="*{videoPath != null and videoPath != ''}"
                    >
                      <a th:href="@{*{videoPath}}" target="_blank"
                        >查看活动资料</a
                      >
                    </p>
                    <p
                      class="form-control-static"
                      th:if="*{videoPath == null or videoPath == ''}"
                    >
                      无
                    </p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">状态：</label>
                  <div class="col-sm-8">
                    <p class="form-control-static" th:if="*{status == 0}">
                      未开始
                    </p>
                    <p class="form-control-static" th:if="*{status == 1}">
                      进行中
                    </p>
                    <p class="form-control-static" th:if="*{status == 2}">
                      已结束
                    </p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">备注：</label>
                  <div class="col-sm-8">
                    <p class="form-control-static" th:text="*{remark}"></p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">创建者：</label>
                  <div class="col-sm-8">
                    <p class="form-control-static" th:text="*{createBy}"></p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">创建时间：</label>
                  <div class="col-sm-8">
                    <p class="form-control-static" th:text="*{createTime}"></p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">更新者：</label>
                  <div class="col-sm-8">
                    <p class="form-control-static" th:text="*{updateBy}"></p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">更新时间：</label>
                  <div class="col-sm-8">
                    <p class="form-control-static" th:text="*{updateTime}"></p>
                  </div>
                </div>
                <div class="form-group">
                  <div class="form-control-static col-sm-offset-9">
                    <button
                      class="btn btn-primary"
                      type="button"
                      onclick="closeItem()"
                    >
                      返回
                    </button>
                  </div>
                </div>
              </form>
            </div>
          </div>
        </div>
      </div>
    </div>

    <th:block th:include="include :: footer" />

    <script type="text/javascript">
      /* 关闭窗口 */
      function closeItem() {
        var index = parent.layer.getFrameIndex(window.name);
        parent.layer.close(index);
      }
    </script>
  </body>
</html>
